<?php if (!defined('THINK_PATH')) exit();?><div class="yuListCo mendian">
    <h4 class="clearfix">
        <em class="listW1">ID</em>
        <em class="listW2">门店名称</em>
        <em class="listW3">门店地址</em>
        <em class="listW4">门店负责人</em>
        <em class="listW5">门店电话</em>
        <em class="listW6">状态</em>
        <em class="listW7">操作</em>
    </h4>
    <ul>
        <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class="listBg clearfix">
                <em class="listW1"><?php echo ($vo["store_id"]); ?></em>
                <em class="listW2"><?php echo ($vo["store_name"]); ?></em>
                <em class="listW3"><?php echo ($vo["address"]); ?></em>
                <em class="listW4"><?php echo ($vo["store_lead"]); ?></em>
                <em class="listW5"><?php echo ($vo["store_tel"]); ?></em>
                <em class="listW6"><?php echo $vo['status'] ? '禁用' : '启用' ;?></em>
                <em class="listW7"><a href="/StoreManage/add/store_id/<?php echo ($vo["store_id"]); ?>">编辑</a>
                    <?php if(($vo["status"] == 1)): ?><a href="#" onclick="return change_store_status('<?php echo ($vo["store_id"]); ?>', 0);">启用</a>
                        <?php else: ?>									
                        <a href="#" onclick="return change_store_status('<?php echo ($vo["store_id"]); ?>', 1);">禁用</a><?php endif; ?>	
                </em>
            </li><?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
</div>
<div class="pageFaye"><div class="pager"><?php echo ($page); ?></div><div class="clear"></div></div>